package aspectjutil.eventmanager.label;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Field;

/**
 * Based on {@link http://www.aspectprogrammer.org/blogs/adrian/2005/03/event_driven_ar.html}.
 * Method with this annotation trigger the specified event type(s).
 * This annotation will be inherited.
 * This annotation should not be used on method in interface definition; 
 * rather should be used on method or field in concrete class definition. 
 * @author ay
 */
@Retention(RetentionPolicy.RUNTIME)
@Target( {ElementType.METHOD, ElementType.FIELD})
public @interface EventTrigger {
	/**
	 * @return Types of events being triggered
	 */
	public Class<?> value();
}
